package com.erp.module.pieceworkGrouping

import com.erp.pull.PullP
import com.erp.pull.PullView
import android.bluetooth.BluetoothDevice
import com.erp.bean.PieceworkGroupingNameBean


interface PieceworkGroupingContract {

    interface PieceworkGroupingFragmentView : PullView {
        //获取选择的分组数据成功
        fun getPieceworkOk(gangwei_name: String)
        //获取选择的分组数据失败
        fun getPieceworkNo()
        //上传数据成功
        fun postPieceworkcollOk(scan:String,ishuancun:Boolean)
        //上传数据失败
        fun postPieceworkcollNo(scan:String,ishuancun:Boolean)
        //上传数据成功
        fun postScanCodelOk()
        //上传数据失败
        fun postScanCodelNo()

        //选择蓝牙
        fun onClickBlue(position : Int, bluetoothDevice : BluetoothDevice )
    }

    interface ProductionFragmentKP : PullP {
        //获取选择的分组数据
        fun getPiecework()
        //上传扫描数据
        fun postPieceworkcoll(code:String,ishuancun:Boolean)
        //上传扫描记录
        fun postScanCodel(scan_code:String,sign:String)
    }

    interface ProductionGroupingView{
        //选择岗位
        fun clickGouping(bean : PieceworkGroupingNameBean)
        //获取岗位名称列表成功
        fun getGroupingNamesOk(ids: ArrayList<String>, names: ArrayList<String>)
        //获取岗位名称列表失败
        fun getGroupingNamesNo()
        //获取岗位数据成功
        fun getGroupingListOk()
        //获取岗位数据失败
        fun getGroupingListNo()
    }

    interface ProductionGroupingKP{
        //获取岗位名称列表
        fun getGroupingNames()
        //获取岗位数据
        fun getGroupingList(gangwei_name:String,name:String,staff_name:String)
    }

    interface ProductionChaxunView : PullView{

    }

    interface ProductionChaxunKP : PullP{
        fun setCode(code:Int,starttime:String,endtime:String,batch_names:String)
    }
}